package com.kbbywyclient.ui.contarct;

import com.kbbywyclient.data.entity.LoansTableMenu;
import com.kbbywyclient.data.entity.ResultInfo;
import com.kbbywyclient.data.entity.StatusUpdate;
import com.kbbywyclient.data.entity.TabledBuy;
import com.kbbywyclient.ui.contarct.base.IBaseView;

import java.util.List;

/**
 * Description:
 * Created by FHW
 * on 2017/4/12
 */

public class BoughtTableContract {
    public interface View extends IBaseView {
        //表单
        void loadSucBoughtTable(List<ResultInfo> resultInfoList);

        void loadFaiBoughtTable(String errorMsg);

        void setAdapterOrNotify(List<ResultInfo> resultInfoList);

        void setNoMore();

        void setMoreComplete();

        //申请表筛选菜单
        void loadSucMenu(LoansTableMenu loansTableMenu);

        void loadFaiMenu(String errorMsg);

        //购买 表单

        void loadSucTableBuy(TabledBuy tabledBuy, String buyType);

        void loadFaiTableBuy(String errorMsg);

        //修改申请表状态
        void loadSucLoansUpdate(StatusUpdate statusUpdate);

        void loadFaiLoansUpdate(String errorMsg);
    }

    public interface Presenter {

        void getLoansBuyOrders(boolean isClean, String SalesID
                , String LoansType, String WorkTypeList, String ProductLoansID, String KeyWord, String Status
                , long ApplyStarDateTime, long ApplyEndDateTime);

        void getloansOrdersMenu(String SalesID);

        void getApplyLoansBuy(String SalesID, String ApplyLoansID, String ApplyLoansSN, String Monopolize, String BuyType);

        void getApplyLoansUpdate(String SalesID, String ApplyLoansID, String ApplyLoansSN, String Status, String SuccessDescription
                , String SuccessLoansTerm, String SuccessLoansMoney, String MonthlyInterestRate);

    }
}
